/*
Author: Ryan Westfall
Functionality: this class create random numbers that are easy to use
Version number: 0.0.2
Testers: needs to be tested
Date written: October 13, 2011
Date tested: 
Todo:
*/

package disease;
import java.util.*;
public class RandomNumber {

	public int getRandomNumber(){
		//return random number
		Random rand_num = new Random(); 
		int number = rand_num.nextInt();
		return number;
	}
	public int getRandomNumber(int range){
		//returns with a certain range specified
		Random rand_num = new Random(); 
		int number = rand_num.nextInt();
		return number%range;
	}
	public int getPositiveRandomNumber(){
		//returns a positive random number
		Random rand_num = new Random();
		int number = rand_num.nextInt();
		return Math.abs(number);
	}
	public int getPositiveRandomNumber(int value){
		//returns with a positive certain range specified
		Random rand_num = new Random();
		int number = rand_num.nextInt();
		return Math.abs(number%value);
	}
	
}
